// logs.js

const app = getApp()
Page({
  data: {

  },
  onShow() {
    this.setData({
      navH: app.globalData.navHeight
    })
    this.setTabBarIndex()
  },
  setTabBarIndex() {
    if (typeof this.getTabBar === 'function' &&
      this.getTabBar()) {
      this.getTabBar().setData({
        selected: 1
      })
    } else {
      console.log('未获取到getTabBar()');
    }
  },

})
